<%-- 
    Document   : ModificarNutri
    Created on : 27-ago-2014, 1:04:53
    Author     : Arturo Romero.
--%>

<%@page import="java.sql.ResultSet"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" href="css/menu-admin.css" type="text/css">
        <jsp:useBean id="base" class="metodo.metodosadmin" scope="page"></jsp:useBean>
        <title>JSP Page</title>
    </head>
    <body>
    <center> <h1>Modificar Nutriologo!</h1>
        <%
            String id=request.getParameter("ID");
        %>
        
        
    <%
            try{
            ResultSet rs=base.Nutriologos(id);
            //Si no hay un siguiente
            if(!rs.next()){
                out.print("No se encontraron Nutriologos registrados");
            }
            else{
         
        %>
    <center><form action="ActualizaNutri.jsp?ID=<%=rs.getString(8)%>" method="post">
        <%
        do {
            %><div class="div"><center><table width="40%">
                                <tr>
                                    <td class="nombre-alta">RFC : </td>
                                    <td><input type='text' placeholder="<%=rs.getString(1)%>" name="rfc" class="alta-form" required="off" autocomplete="off"</td>
                                </tr>
                                <tr>
                                    <td class="nombre-alta">CEDULA :</td>
                                    <td><input type='text' placeholder="<%=rs.getString(2)%>" name="cedula" class="alta-form" required="off" autocomplete="off"</td>
                                </tr>
                                <tr><td class="nombre-alta">Nombre : </td>
                                    <td><input type='text' placeholder="<%=rs.getString(3)%>" name="usuario" class="alta-form" required="off" autocomplete="off"</td>
                                </tr>
                                <tr>
                                    <td class="nombre-alta">Apellidos : </td> 
                                    <td><input type='text' placeholder="<%=rs.getString(4)%>" name="apellidos" class="alta-form" required="off" autocomplete="off"</td>
                                </tr>
                                <tr><td class="nombre-alta">Dirección : </td> 
                                    <td><input type='text' placeholder="<%=rs.getString(5)%>" name="direccion" class="alta-form" required="off" autocomplete="off"</td>
                                </tr>
                                <tr>
                                    <td class="nombre-alta">e-mail : </td>
                                    <td><input type='mail' placeholder="<%=rs.getString(6)%>" name="correo" class="alta-form" required="off" autocomplete="off"</td>
                                </tr>
                </table><center><br/><input type="submit" name="button" value="MODIFICAR" /></center></center></div><%} 
while(rs.next());
}
}
catch(Exception e){
out.print("Error al consultar: " + e);
}
%>

        </form></center>
         </center> </body>
</html>
